﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200131F RID: 4895
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class TakeApRewardCsReq : IMessage<TakeApRewardCsReq>, IMessage, IEquatable<TakeApRewardCsReq>, IDeepCloneable<TakeApRewardCsReq>, IBufferMessage
	{
		// Token: 0x17003DC3 RID: 15811
		// (get) Token: 0x0600DB20 RID: 56096 RVA: 0x0024B110 File Offset: 0x00249310
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<TakeApRewardCsReq> Parser
		{
			get
			{
				return TakeApRewardCsReq._parser;
			}
		}

		// Token: 0x17003DC4 RID: 15812
		// (get) Token: 0x0600DB21 RID: 56097 RVA: 0x0024B117 File Offset: 0x00249317
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return TakeApRewardCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003DC5 RID: 15813
		// (get) Token: 0x0600DB22 RID: 56098 RVA: 0x0024B129 File Offset: 0x00249329
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return TakeApRewardCsReq.Descriptor;
			}
		}

		// Token: 0x0600DB23 RID: 56099 RVA: 0x0024B130 File Offset: 0x00249330
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeApRewardCsReq()
		{
		}

		// Token: 0x0600DB24 RID: 56100 RVA: 0x0024B138 File Offset: 0x00249338
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeApRewardCsReq(TakeApRewardCsReq other) : this()
		{
			this.level_ = other.level_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600DB25 RID: 56101 RVA: 0x0024B15D File Offset: 0x0024935D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeApRewardCsReq Clone()
		{
			return new TakeApRewardCsReq(this);
		}

		// Token: 0x17003DC6 RID: 15814
		// (get) Token: 0x0600DB26 RID: 56102 RVA: 0x0024B165 File Offset: 0x00249365
		// (set) Token: 0x0600DB27 RID: 56103 RVA: 0x0024B16D File Offset: 0x0024936D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Level
		{
			get
			{
				return this.level_;
			}
			set
			{
				this.level_ = value;
			}
		}

		// Token: 0x0600DB28 RID: 56104 RVA: 0x0024B176 File Offset: 0x00249376
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as TakeApRewardCsReq);
		}

		// Token: 0x0600DB29 RID: 56105 RVA: 0x0024B184 File Offset: 0x00249384
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(TakeApRewardCsReq other)
		{
			return other != null && (other == this || (this.Level == other.Level && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600DB2A RID: 56106 RVA: 0x0024B1B4 File Offset: 0x002493B4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Level != 0U)
			{
				num ^= this.Level.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600DB2B RID: 56107 RVA: 0x0024B1F3 File Offset: 0x002493F3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600DB2C RID: 56108 RVA: 0x0024B1FB File Offset: 0x002493FB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600DB2D RID: 56109 RVA: 0x0024B204 File Offset: 0x00249404
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Level != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.Level);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600DB2E RID: 56110 RVA: 0x0024B238 File Offset: 0x00249438
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Level != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Level);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600DB2F RID: 56111 RVA: 0x0024B276 File Offset: 0x00249476
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(TakeApRewardCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Level != 0U)
			{
				this.Level = other.Level;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600DB30 RID: 56112 RVA: 0x0024B2A7 File Offset: 0x002494A7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600DB31 RID: 56113 RVA: 0x0024B2B0 File Offset: 0x002494B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 40U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.Level = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04005714 RID: 22292
		private static readonly MessageParser<TakeApRewardCsReq> _parser = new MessageParser<TakeApRewardCsReq>(() => new TakeApRewardCsReq());

		// Token: 0x04005715 RID: 22293
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005716 RID: 22294
		public const int LevelFieldNumber = 5;

		// Token: 0x04005717 RID: 22295
		private uint level_;
	}
}
